<?php

namespace App\Admin\Actions;

use Dcat\Admin\Actions\Action;
use Dcat\Admin\Actions\Response;
use Dcat\Admin\Traits\HasPermissions;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;

class OpenHome extends Action
{
    /**
     * @return string
     */
    protected $title = '<i class="fa fa-lg fa-fw fa-home text-dark px-2"></i>';


    public function html()
    {
        $this->setHtmlAttribute('target', '_blank');
        $this->defaultHtmlAttribute('href', '/');

        return <<<HTML
<a {$this->formatHtmlAttributes()}>{$this->title()}</a>
HTML;
    }

}
